package com.ai.mall.vo.req;


public class UserRegisterRequest {
    private String username;
    private String phone;
    private String password;

    // 构造函数
    public UserRegisterRequest() {}

    public UserRegisterRequest(String username, String phone, String password) {
        this.username = username;
        this.phone = phone;
        this.password = password;
    }

    // Getter 和 Setter 方法
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    // isValid 方法
    public boolean isValid() {
        return username != null && !username.isEmpty() &&
                phone != null && !phone.isEmpty() &&
                password != null && !password.isEmpty();
    }
}
